import request from '@/utils/request2'

// 查询学生留校列表
export function listStayAtSchool(query) {
  return request({
    url: '/stuManage/stayAtSchool/list',
    method: 'get',
    params: query
  })
}

// 查询学生留校详细
export function getStayAtSchool(id) {
  return request({
    url: '/stuManage/stayAtSchool/' + id,
    method: 'get'
  })
}

// 新增学生留校
export function addStayAtSchool(data) {
  return request({
    url: '/stuManage/stayAtSchool',
    method: 'post',
    data: data
  })
}

// 修改学生留校
export function updateStayAtSchool(data) {
  return request({
    url: '/stuManage/stayAtSchool',
    method: 'put',
    data: data
  })
}

// 删除学生留校
export function delStayAtSchool(id) {
  return request({
    url: '/stuManage/stayAtSchool/' + id,
    method: 'delete'
  })
}
